gdk: Add GDK_DEPRECATED_IN_3_24() macros
authorBenjamin Otte <otte@redhat.com>
Tue, 24 Jul 2018 18:32:06 +0000 (20:32 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 24 Jul 2018 18:32:26 +0000 (20:32 +0200)
gdk/gdkversionmacros.h.in

index 410abcbe6aa7660758c05cb9da175eef308336df..bba7a5784d1996c8d4b13d03c92e6f227d4ce1ce 100644 (file)
 # define GDK_AVAILABLE_IN_3_22                _GDK_EXTERN
 #endif
 
+#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_3_24
+# define GDK_DEPRECATED_IN_3_24               GDK_DEPRECATED
+# define GDK_DEPRECATED_IN_3_24_FOR(f)        GDK_DEPRECATED_FOR(f)
+#else
+# define GDK_DEPRECATED_IN_3_24               _GDK_EXTERN
+# define GDK_DEPRECATED_IN_3_24_FOR(f)        _GDK_EXTERN
+#endif
+
 #if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_3_24
 # define GDK_AVAILABLE_IN_3_24                GDK_UNAVAILABLE(3, 24)
 #else